<?php
define('IN_TG','member');
define('IN_JS','blog');
define('SCRIPT','member');
session_start();
require('includes/common.inc.php');
//加载头部文件
require('header.php');
$sql="select tg_id,tg_username,tg_sex,tg_face,tg_email,tg_url,tg_qq,tg_switch,tg_autograph from tg_user where tg_username ='{$_SESSION['username']}' limit 1";
$res = _query($sql);
$row=_fetch_array_list($res);
?>
<div id="member">
    <?php
    require ("includes/member.inc.php");
    ?>
    <div id="member_main">
        <h2>个人信息</h2>
        <form method="post" action="?action=modify">
            <dl>
                <dd>用 户 名：<?php echo $row['tg_username'];?></dd>
                <dd>性　　别：<?php echo $row['tg_sex'];?></dd>
                <dd>头　　像：<img src="<?php echo $row['tg_face'];?>" alt="头像选择" id="faceimg" align="center"/></dd>
                <dd>电子邮件：<?php echo $row['tg_email'];?></dd>
                <dd>主　　页：<?php echo $row['tg_url'];?></dd>
                <dd>Q 　 　Q：<?php echo $row['tg_qq'];?></dd>
                <dd>个性签名：<?php echo $row['tg_autograph'];?></dd>
                <dd><a href="delete_member.php?id=<?php echo $row['tg_id']; ?>"
                       style="text-decoration: none;display: inline-block;width:100px;height: 30px;background-color: red;text-align: center;color:white;line-height: 30px;"/>销毁当前账号</a>
                </dd>
            </dl>
        </form>
    </div>
</div>
<?php
require('includes/footer.inc.php');
?>
